package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备对象 device
 *
 * @author ruoyi
 * @date 2023-02-14
 */
public class Device extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 设备厂家 */
    @Excel(name = "设备厂家")
    private String factoryName;

    /** 设备品牌 */
    @Excel(name = "设备品牌")
    private String brand;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    /** 参数 */
    @Excel(name = "参数")
    private String paramsDetail;

    /** 设备code */
    @Excel(name = "设备code")
    private String code;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String position;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String status;

    /** 最后更新时间 */
    private Date lastTime;

    /** 部门id */
    private Long deptId;

    /** 第一个父类部门id */
    private Long deptFirstParentId;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDeviceType(String deviceType)
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType()
    {
        return deviceType;
    }
    public void setFactoryName(String factoryName)
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName()
    {
        return factoryName;
    }
    public void setBrand(String brand)
    {
        this.brand = brand;
    }

    public String getBrand()
    {
        return brand;
    }
    public void setPrice(String price)
    {
        this.price = price;
    }

    public String getPrice()
    {
        return price;
    }
    public void setParamsDetail(String paramsDetail)
    {
        this.paramsDetail = paramsDetail;
    }

    public String getParamsDetail()
    {
        return paramsDetail;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setPosition(String position)
    {
        this.position = position;
    }

    public String getPosition()
    {
        return position;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setLastTime(Date lastTime)
    {
        this.lastTime = lastTime;
    }

    public Date getLastTime()
    {
        return lastTime;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setDeptFirstParentId(Long deptFirstParentId)
    {
        this.deptFirstParentId = deptFirstParentId;
    }

    public Long getDeptFirstParentId()
    {
        return deptFirstParentId;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("deviceType", getDeviceType())
            .append("factoryName", getFactoryName())
            .append("brand", getBrand())
            .append("price", getPrice())
            .append("paramsDetail", getParamsDetail())
            .append("code", getCode())
            .append("position", getPosition())
            .append("status", getStatus())
            .append("lastTime", getLastTime())
            .append("deptId", getDeptId())
            .append("deptFirstParentId", getDeptFirstParentId())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
